<%-- 
    Document   : Problem
    Created on : 3/04/2011, 02:33:30 PM
    Author     : Jhon
--%>

<%@page import="control.Controller"%>
<%@page import="vo.VOProblem"%>
<%@page import="vo.VOUser"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="HTML.*"%>
<%@include file="CheckSession.jsp"%>
<% HtmlBody b = new HtmlBody("Problem","");
   VOUser a = (VOUser) session.getAttribute("USER");
   if(a.isIsAdmin()){
   b.addUsuario(a.getHandle(), "Administrator");
   }else{
   b.addUsuario(a.getHandle(), "Usuario");
   }
   HtmlSideBar s = new HtmlSideBar(true);
   Controller con = Controller.getInstance();
   VOProblem p = (VOProblem) session.getAttribute("PROBLEM");
   HtmlContent c = new HtmlContent("Problem: "+p.getName()+" <br>Contest Code: "+p.getContestCode());
   c.addStory("<h3><center>"+p.getName()+"<br>("+p.getAccepted()+"/"+p.getSubmissions()+")<br>Difficulty: "+p.getDifficulty()+"<br>Time Limit: "+p.getTime()+" seconds</center></h3>", p.getDescription());
    b.addContent(c.getContent());
   b.addSideBar(s.getBar());
    %>

    <%=b.getHtml()%>
